import 'package:flu_framework/index.dart';
import 'package:flu_framework/ui/home/pages/Overlay_page.dart';
import 'package:flu_framework/ui/home/pages/image_picker_page.dart';
import 'package:flu_framework/ui/home/pages/inpay_page.dart';
import 'package:flu_framework/ui/home/pages/jiguang_verify.dart';
import 'package:flu_framework/ui/home/pages/location_page.dart';
import 'package:flu_framework/ui/home/pages/pay_page.dart';
import 'package:flu_framework/ui/home/pages/refresh2_page.dart';
import 'package:flu_framework/ui/home/pages/refresh_page.dart';
import 'package:flu_framework/ui/home/pages/splash_page.dart';
import 'package:flu_framework/ui/home/pages/umeng_page.dart';
import 'package:flu_framework/ui/home/pages/use_btn_page.dart';
import 'package:flu_framework/ui/home/pages/video_play_page.dart';
import 'package:get/get.dart';
import 'common/pages/browse_image_page.dart';


List<GetPage<dynamic>> pages = [
  // toolbar
  GetPage(name: PageName.PAGE_SPLASH, page: () => SplashPage()),

  GetPage(name: PageName.PAGE_MAIN, page: () => Toolbar()),
  GetPage(name: PageName.PAGE_BROWSE_IMAGE, page: () => BrowseImagePage()),
  GetPage(name: PageName.PAGE_REFRESH, page: () => RefreshPage()),
  GetPage(name: PageName.PAGE_REFRESH2, page: () => Refresh2Page()),
  GetPage(name: PageName.PAGE_LOCATION, page: () => LocationPage()),
  GetPage(name: PageName.PAGE_PAY, page: () => PayPage()),
  GetPage(name: PageName.PAGE_IMAGE_PICKER, page: () => ImagePickerPage()),
  GetPage(name: PageName.PAGE_VIDEO_PLAYER, page: () => VideoPlayPage()),
  GetPage(name: PageName.PAGE_IN_PAY, page: () => InPayPage()),
  GetPage(name: PageName.PAGE_UMENG, page: () => UMengPage()),
  GetPage(name: PageName.PAGE_OVERLAY, page: () => OverlayPage()),
  GetPage(name: PageName.PAGE_JGVERIFY, page: () => JGVerifyPager()),
  GetPage(name: PageName.PAGE_USEBTN, page: () => UseBtnPage()),
];

class PageName{

  //webviewPage
  static const String PAGE_WEBVIEW = '/common/pages/webview_page';
  //浏览图片
  static const String PAGE_BROWSE_IMAGE = '/common/pages/browse_image_page';
  static const String PAGE_MAIN = '/';
  static const String PAGE_SPLASH = '/ui/home/pages/splash_page';

  static const String PAGE_REFRESH = '/ui/home/pages/refresh_page.dart'; // 上下拉刷新
  static const String PAGE_REFRESH2 = '/refresh2_page.dart'; // 上下拉刷新2
  static const String PAGE_LOCATION = '/ui/home/pages/location_page.dart'; // 定位
  static const String PAGE_PAY = '/ui/home/pages/pay_page.dart'; // 支付
  static const String PAGE_IMAGE_PICKER = '/ui/home/pages/image_picker_page.dart'; // 拍照&图库
  static const String PAGE_VIDEO_PLAYER = '/ui/home/pages/video_play_page.dart'; // 视频播放
  static const String PAGE_IN_PAY = '/ui/home/pages/inpay_page.dart.dart';
  static const String PAGE_UMENG = '/ui/home/pages/umeng_page.dart'; // 友盟
  static const String PAGE_OVERLAY = '/ui/home/pages/Overlay_page.dart'; //遮罩蒙层
  static const String PAGE_JGVERIFY = '/ui/home/pages/jiguang_verify.dart';
  static const String PAGE_USEBTN = '/ui/home/pages/use_btn_page.dart';

}
